// 权限管理的网络请求

import {request} from "./request";
import {post} from "@/utils/requests/requests";

// 获取农户列表按类型
export function getFarmerPageRequest(type,pageNo,pageSize) {
  return post({
    url: `/admin/audit/farmer/authentication/getFarmerPageByType/${type}`,
    params: {
      pageNo,pageSize
    }
  })
}


// 根据角色id获取农户信息
export function getFarmerAuthenticationInfoByIdRequest(id) {
  return post({
    url: `/admin/audit/farmer/authentication/getFarmerAuthenticationInfoById/${id}`
  })
}


// 根据id对农户的认证进行审核
export function auditFarmerAuthenticationByIdRequest(id, status) {
  return post({
    url: `/admin/audit/farmer/authentication/auditFarmerAuthenticationById/${id}/${status}`,
  })
}
